package com.agile.leetcode.test;

/**
 * @Author:ChenZhangKun
 * @Date: 2023/7/18 17:32
 */
public class IntAbs {

    public static void main(String[] args) {
        // -2147483648
        System.out.println(Math.abs(Integer.MIN_VALUE));
        // 转为long
        System.out.println(Math.abs((long)Integer.MIN_VALUE));

    }

}
